"""
URL configuration for student app.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path, re_path
from student import views

app_name = "student"
urlpatterns = [
    # 学生注册
    re_path('^student/register/$', views.RegisterView.as_view(), name='register'),
    re_path('^student/register/check_number/$', views.check_number, name='register_check_number'),

    # 学生登录
    re_path(r'^student/login/$', views.LoginView.as_view(), name='login'),
    re_path(r'^student/home/$', views.home, name='home'),

    # 验证码
    re_path(r'^student/generate_code/$', views.generate_code, name='generate_code'),
    re_path(r'^student/verify_code/$', views.verify_code, name='verify_code'),

    # 展示就业岗位
    re_path(r'^student/show_jobs/$', views.ShowJobView.as_view(), name='show_jobs'),

    # 预约面试
    re_path(r'^student/create_interview/$', views.CreateInterviewView.as_view(), name='create_interview'),
    # 列出面试
    re_path(r'^student/interview_list/$', views.InterviewListView.as_view(), name='interview_list'),

    # 查看实习状态
    re_path(r'^student/internship_list/$', views.InternshipListView.as_view(), name='internship_list'),

    # 订阅关注某企业
    re_path(r'^student/subscribe/$', views.SubscriptionOrganization.as_view(), name='subscribe'),

    # 推荐一个最相关的企业
    re_path(r'^student/recommend/$', views.RecommendOrganization.as_view(), name='recommend'),

]

